<?php js_validate();?>
<form id="form-validated" class="input" action="<?php echo $own_links;?>save" method="post" enctype="multipart/form-data">
		<input type="hidden" name="bank_id" id="bank_id" value="<?php echo isset($val->bank_id)?$val->bank_id:'';?>" />
		<table class="table-form">
			<tr>
				<td>Nama Bank</td>
				<td><input type="text" id="bank_name" name="bank_name" class="validate[required]"size="20" value="<?php echo isset($val->bank_name)?$val->bank_name:'';?>" /></td>
			</tr>
			<tr valign="top">
				<td>Alamat Bank</td>
				<td>
                <textarea cols="50" rows="3" name="bank_address" class="validate[required]" id="bank_address"><?php echo isset($val->bank_name)?$val->bank_name:'';?></textarea>
               </td>
			</tr>
            <tr valign="top">
				<td>Photo</td>
				<td><input type="file" name="bank_logo" id="bank_logo" /><br />
				<?php if(isset($val->bank_logo) && trim($val->bank_logo)!=""){?>
				<img src="<?php echo get_image(base_url()."uploaded/bank_logo/thumb/".$val->bank_logo);?>" width="40" />
				<?php } ?>
				</td>
			</tr>
			<tr><td colspan="2">&nbsp;</td></tr>
			<tr>
				<td><input type="reset" onclick="document.location='<?php echo $own_links;?>'" class="btnbatal" value="Batal" /></td>
				<td align="right"><input type="submit" class="btnsimpan" value="Simpan" /></td>
			</tr>
		</table>
	</form>